import request from '@/utils/request'
//// 查看房间信息
export function getRoom(userId) {
	return request({
		url:'/room/room/list',
		method: 'get',
		params: { userId }
	})
}
// 查找房间
export function listRoom(id) {
  return request({
    url: '/device/device/' +id,
    method: 'get',
  })
}
// 删除房间信息
export function delRoom(roomId) {
  return request({
    url: '/room/room/' + roomId,
    method: 'delete',
  })
}
// 新增房间信息
export function addRoom(data) {
  return request({
    url: '/room/room',
    method: 'post',
    data: data
  })
}

// 修改房间信息
export function updateRoom(data) {
  return request({
    url: '/room/room',
    method: 'put',
    data: data
  })
}
